package cc.wanforme.fsync.server.task;

import cc.wanforme.fsync.entity.po.SyncLog;
import org.springframework.context.ApplicationEvent;

public class SyncEvent extends ApplicationEvent {
	private static final long serialVersionUID = 1L;
	public static final String BEFORE="before"; // 未开始
    public static final String FINISH = "finish"; // 已完成
    
    // 状态
    private String status;
    // 本次同步记录
    private SyncLog syncLog;

    public SyncEvent(String status, SyncLog syncLog) {
        super(syncLog);
        this.status = status;
        this.syncLog = syncLog;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public SyncLog getSyncLog() {
        return syncLog;
    }

    public void setSyncLog(SyncLog syncLog) {
        this.syncLog = syncLog;
    }
}
